<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="resource/js/vue.js"></script>
</head>
<body>
<div id="app">
    <my-component></my-component>
</div>
<script>
    var MyComponent = Vue.extend({
        template:'<div>A custom component!</div>'
    })
    Vue.component('my-component', MyComponent);

    new Vue({
        el: '#app'
    })
</script>
</body>
</html>